package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

public class SeckillGoodsRes {
    private Integer id;
    /**
     * 参与秒杀商品的id
     * isnull 0
     */        @ApiModelProperty(value="参与秒杀商品的id",position=3)
    private Integer goodsId;
    /**
     * 商品名称
     * isnull 0
     */        @ApiModelProperty(value="商品名称",position=2)
    private String name;
    /**
     * 商品主图
     * isnull 0
     */        @ApiModelProperty(value="商品主图",position=13)
    private String image;
    /**
     * 市场价(商品吊牌价/划线价)
     * isnull 0
     */        @ApiModelProperty(value="市场价(商品吊牌价/划线价)",position=23)
    private BigDecimal marketPrice;
    /**
     * 秒杀活动价
     * isnull 0
     */        @ApiModelProperty(value="秒杀活动价",position=5)
    private BigDecimal price;
    /**
     * 开始日期
     * isnull 0
     *
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value="开始日期",position=13)
    private LocalDate startDate;
    /**
     * 结束日期
     * isnull 0
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")

    @ApiModelProperty(value="结束日期",position=14)
    private LocalDate endDate;
    /**
     * 秒杀时间id
     * isnull 0
     */        @ApiModelProperty(value="秒杀时间id",position=2)
    private Integer seckillId;
    /**
     * 开始时间
     * isnull 0
     */

    private String startTime;
    /**
     * 结束时间
     * isnull 0
     */

    private String endTime;
    /**
     * 审核状态 0-待审核 1-审核通过 2-审核拒绝
     * isnull 0
     */        @ApiModelProperty(value="审核状态 0-待审核 1-审核通过 2-审核拒绝",position=11)
    private Object reviewStatus;
    /**
     * 审核说明
     * isnull 0
     */        @ApiModelProperty(value="审核说明",position=12)
    private String reviewDesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public Integer getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Integer seckillId) {
        this.seckillId = seckillId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Object getReviewStatus() {
        return reviewStatus;
    }

    public void setReviewStatus(Object reviewStatus) {
        this.reviewStatus = reviewStatus;
    }

    public String getReviewDesc() {
        return reviewDesc;
    }

    public void setReviewDesc(String reviewDesc) {
        this.reviewDesc = reviewDesc;
    }
}
